<%@ page import="com.app.so.rec.SoRec" %>
<!doctype html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'soRec.label', default: 'SoRec')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
<a href="#show-soRec" class="skip" tabindex="-1"><g:message code="default.link.skip.label"
                                                            default="Skip to content&hellip;"/></a>

<div class="nav" role="navigation">
    <ul>
        <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
        <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]"/></g:link></li>
        <li><g:link class="create" action="create"><g:message code="default.new.label"
                                                              args="[entityName]"/></g:link></li>
    </ul>
</div>

<div id="show-soRec" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list soRec">

        <g:if test="${soRecInstance?.bdCorp}">
            <li class="fieldcontain">
                <span id="bdCorp-label" class="property-label"><g:message code="soRec.bdCorp.label"
                                                                          default="Bd Corp"/></span>

                <span class="property-value" aria-labelledby="bdCorp-label"><g:link controller="bdCorp" action="show"
                                                                                    id="${soRecInstance?.bdCorp?.id}">${soRecInstance?.bdCorp?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.billTypeCode}">
            <li class="fieldcontain">
                <span id="billTypeCode-label" class="property-label"><g:message code="soRec.billTypeCode.label"
                                                                                default="Bill Type Code"/></span>

                <span class="property-value" aria-labelledby="billTypeCode-label"><g:fieldValue bean="${soRecInstance}"
                                                                                                field="billTypeCode"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.billdate}">
            <li class="fieldcontain">
                <span id="billdate-label" class="property-label"><g:message code="soRec.billdate.label"
                                                                            default="Billdate"/></span>

                <span class="property-value" aria-labelledby="billdate-label"><g:formatDate
                        date="${soRecInstance?.billdate}"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.billno}">
            <li class="fieldcontain">
                <span id="billno-label" class="property-label"><g:message code="soRec.billno.label"
                                                                          default="Billno"/></span>

                <span class="property-value" aria-labelledby="billno-label"><g:fieldValue bean="${soRecInstance}"
                                                                                          field="billno"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.billtype}">
            <li class="fieldcontain">
                <span id="billtype-label" class="property-label"><g:message code="soRec.billtype.label"
                                                                            default="Billtype"/></span>

                <span class="property-value" aria-labelledby="billtype-label"><g:link controller="pubBilltype"
                                                                                      action="show"
                                                                                      id="${soRecInstance?.billtype?.id}">${soRecInstance?.billtype?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.bodys}">
            <li class="fieldcontain">
                <span id="bodys-label" class="property-label"><g:message code="soRec.bodys.label"
                                                                         default="Bodys"/></span>

                <g:each in="${soRecInstance.bodys}" var="b">
                    <span class="property-value" aria-labelledby="bodys-label"><g:link controller="soRecBody"
                                                                                       action="show"
                                                                                       id="${b.id}">${b?.encodeAsHTML()}</g:link></span>
                </g:each>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.businessType}">
            <li class="fieldcontain">
                <span id="businessType-label" class="property-label"><g:message code="soRec.businessType.label"
                                                                                default="Business Type"/></span>

                <span class="property-value" aria-labelledby="businessType-label"><g:link controller="pubBusinessType"
                                                                                          action="show"
                                                                                          id="${soRecInstance?.businessType?.id}">${soRecInstance?.businessType?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.checkDate}">
            <li class="fieldcontain">
                <span id="checkDate-label" class="property-label"><g:message code="soRec.checkDate.label"
                                                                             default="Check Date"/></span>

                <span class="property-value" aria-labelledby="checkDate-label"><g:formatDate
                        date="${soRecInstance?.checkDate}"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.checker}">
            <li class="fieldcontain">
                <span id="checker-label" class="property-label"><g:message code="soRec.checker.label"
                                                                           default="Checker"/></span>

                <span class="property-value" aria-labelledby="checker-label"><g:link controller="smUser" action="show"
                                                                                     id="${soRecInstance?.checker?.id}">${soRecInstance?.checker?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.dateCreated}">
            <li class="fieldcontain">
                <span id="dateCreated-label" class="property-label"><g:message code="soRec.dateCreated.label"
                                                                               default="Date Created"/></span>

                <span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate
                        date="${soRecInstance?.dateCreated}"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.hxje}">
            <li class="fieldcontain">
                <span id="hxje-label" class="property-label"><g:message code="soRec.hxje.label" default="Hxje"/></span>

                <span class="property-value" aria-labelledby="hxje-label"><g:fieldValue bean="${soRecInstance}"
                                                                                        field="hxje"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.lastUpdated}">
            <li class="fieldcontain">
                <span id="lastUpdated-label" class="property-label"><g:message code="soRec.lastUpdated.label"
                                                                               default="Last Updated"/></span>

                <span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate
                        date="${soRecInstance?.lastUpdated}"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.makeDate}">
            <li class="fieldcontain">
                <span id="makeDate-label" class="property-label"><g:message code="soRec.makeDate.label"
                                                                            default="Make Date"/></span>

                <span class="property-value" aria-labelledby="makeDate-label"><g:formatDate
                        date="${soRecInstance?.makeDate}"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.maker}">
            <li class="fieldcontain">
                <span id="maker-label" class="property-label"><g:message code="soRec.maker.label"
                                                                         default="Maker"/></span>

                <span class="property-value" aria-labelledby="maker-label"><g:link controller="smUser" action="show"
                                                                                   id="${soRecInstance?.maker?.id}">${soRecInstance?.maker?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.sourceBill}">
            <li class="fieldcontain">
                <span id="sourceBill-label" class="property-label"><g:message code="soRec.sourceBill.label"
                                                                              default="Source Bill"/></span>

                <span class="property-value" aria-labelledby="sourceBill-label"><g:link controller="soSale"
                                                                                        action="show"
                                                                                        id="${soRecInstance?.sourceBill?.id}">${soRecInstance?.sourceBill?.encodeAsHTML()}</g:link></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.vnote}">
            <li class="fieldcontain">
                <span id="vnote-label" class="property-label"><g:message code="soRec.vnote.label"
                                                                         default="Vnote"/></span>

                <span class="property-value" aria-labelledby="vnote-label"><g:fieldValue bean="${soRecInstance}"
                                                                                         field="vnote"/></span>

            </li>
        </g:if>

        <g:if test="${soRecInstance?.zk}">
            <li class="fieldcontain">
                <span id="zk-label" class="property-label"><g:message code="soRec.zk.label" default="Zk"/></span>

                <span class="property-value" aria-labelledby="zk-label"><g:fieldValue bean="${soRecInstance}"
                                                                                      field="zk"/></span>

            </li>
        </g:if>

    </ol>
    <g:form>
        <fieldset class="buttons">
            <g:hiddenField name="id" value="${soRecInstance?.id}"/>
            <g:link class="edit" action="edit" id="${soRecInstance?.id}"><g:message code="default.button.edit.label"
                                                                                    default="Edit"/></g:link>
            <g:actionSubmit class="delete" action="delete"
                            value="${message(code: 'default.button.delete.label', default: 'Delete')}"
                            onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/>
        </fieldset>
    </g:form>
</div>
</body>
</html>
